package com.ruoyi.framework.web.service;

import com.ruoyi.project.wechatprogram.wxcategory.domain.WxCategory;
import com.ruoyi.project.wechatprogram.wxcategory.service.IWxCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * RuoYi首创 html调用 thymeleaf 实现参数管理
 * 
 * @author ruoyi
 */
@Service("category")
public class CategoryService
{
    @Autowired
    private IWxCategoryService wxCategoryService;

    /**
     * 根据键名查询餐品类目
     * 
     * @param category 参数名称
     * @return 参数键值
     */
    public List<WxCategory> getCategory(WxCategory category)
    {
        return wxCategoryService.selectWxCategoryList(category);
    }

}
